const myNew = (...args) => {
  const [fn, ...other] = args;
  // const obj = {};
  // obj.__proto__ = fn.prototype;
  const obj = Object.create(fn.prototype);
  const res = fn.apply(obj, other);
  return res instanceof Object ? res : obj;
}